import request from "@/utils/request";

// 获取任务列表
function getTask() {
  return request({
    url: 'q-lJTask/task-list',
  });
}
// 编辑任务
function editTask(data) {
  return request({
    url: `q-lJTask`,
    method: 'put',
    data,
  });
}

// 删除 任务
function deleteTask(data) {
  return request({
    url: 'q-lJTask',
    method: 'delete',
    data,
  });
}

export { getTask, editTask, deleteTask }